//
//  DetailTableViewCell2.m
//  JZMCFM
//
//  Created by Mc on 15/11/2.
//  Copyright (c) 2015年 陈卓. All rights reserved.
//

#import "DetailTableViewCell2.h"

@interface DetailTableViewCell2 ()
@property (strong, nonatomic) IBOutlet UIImageView *headImageV;
@property (strong, nonatomic) IBOutlet UILabel *titleL;
@property (strong, nonatomic) IBOutlet UILabel *nicknameL;
@property (strong, nonatomic) IBOutlet UILabel *playtimesL;
@property (strong, nonatomic) IBOutlet UILabel *likes;
@property (strong, nonatomic) IBOutlet UILabel *commentsL;
@property (strong, nonatomic) IBOutlet UILabel *durationL;

@end

@implementation DetailTableViewCell2

- (void)setCellWithModel:(DetailModel2 *)model
{
    [self.headImageV sd_setImageWithURL:[NSURL URLWithString:model.coverLarge]];
    self.titleL.text = model.title;
    self.nicknameL.text = model.nickname;
    self.playtimesL.text = [NSString stringWithFormat:@"%ld",model.playtimes];
    self.likes.text = [NSString stringWithFormat:@"%ld",model.likes];
    self.commentsL.text = [NSString stringWithFormat:@"%ld",model.comments];
    self.durationL.text = [NSString stringWithFormat:@"%.2f",model.duration / 60];
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
